package com.example.sens.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.example.sens.entity.Threshold;
import com.example.sens.entity.UserQuiz;
import com.example.sens.entity.UserThreshold;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserThresholdMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserThreshold record);

    int insertSelective(UserThreshold record);

    UserThreshold selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserThreshold record);

    int updateByPrimaryKey(UserThreshold record);

    int insertBatch(@Param("list") List<UserThreshold> checkList);

    List<UserThreshold> findAll(Page page, Long userId);

    List<UserThreshold> findAll1();

    List<UserThreshold> findByQuizId(@Param("userQuizIds") List<Long> userQuizIds);
}